#!/usr/bin/Rscript

#$Id$

# This script reads in the set of default pondSim parameters as well as a set
# of user defined parameters from a previous ponSim run. 

# Requires a command line argument
# call:
#   Rscript R/load-run.R <pondsim input file>
#
# NOTE: This script is intended to be run from the website root NOT the R
# directory.

defaults <- 'default/pondSim-default-values'
source('R/read.keys.and.vals.R')
args <- commandArgs(trailingOnly=T)
try(library(brew))
try(library(brew,lib.loc='/home/acvmarsh/R/i686-pc-linux-gnu-library/2.8/'))

v <- read.keys.and.vals(args[1])
v <- c(v,read.keys.and.vals(defaults))

brew('brew/vars.brew.php','sandbox/www/vars.php')
